import request from '@/utils/request'

// 查询求职信息列表
export function listHunt(query) {
  return request({
    url: '/mini/hunt/list',
    method: 'get',
    params: query
  })
}

// 查询求职信息详细
export function getHunt(jobHuntId) {
  return request({
    url: '/mini/hunt/' + jobHuntId,
    method: 'get'
  })
}

// 新增求职信息
export function addHunt(data) {
  return request({
    url: '/mini/hunt',
    method: 'post',
    data: data
  })
}

// 修改求职信息
export function updateHunt(data) {
  return request({
    url: '/mini/hunt',
    method: 'put',
    data: data
  })
}

// 删除求职信息
export function delHunt(jobHuntId) {
  return request({
    url: '/mini/hunt/' + jobHuntId,
    method: 'delete'
  })
}
